<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>管理</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <link rel="stylesheet" href="/static/libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/libs/dropzone/dropzone.css">
    <script src="/static/libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="/static/js/underscore-min.js"></script>
    <script src="/static/js/uuid.js"></script>
    <script src="/static/js/cms/topic-note.js"></script>
    <style>
        .container {
            max-width: 970px;
        }

        .index-img {
            max-width: 100%;
        }
    </style>
</head>
<body>
<header class="navbar navbar-default navbar-static-top" id="top">
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#bs-navbar"
                    aria-controls="bs-navbar" aria-expanded="false">
                <span class="sr-only">展开/收起</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="/" class="navbar-brand">石头人</a>
        </div>
        <nav id="bs-navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active">
                    <a href="/cms/topic">话题</a>
                </li>
                <li>
                    <a href="/cms/topic/gallery">热门话题</a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="#">好帅的程序员</a>
                </li>
            </ul>
        </nav>
    </div>
</header>

<div class="container show-container">

</div>

<div class="container">
    <button type="button" class="more-topic">更多</button>
</div>

<script type="text/template" id="note-manage-template">
    <div class="panel panel-primary" id="manage-note-<%- noteid %>">
        <div class="panel-heading">
            <h3 class="panel-title">用户：<%- user.name %></h3>
        </div>
        <div class="panel-body">
            <div>图片：</div>
            <div class="nt-simgs">
                <% for(var i=0; i < thumbs.length; i++) { %>
                <img src="<%- thumbs[i] %>" class="<% if(i == 0) { %>active<% } %>">
                <% } %>
            </div>
            <div>内容：</div>
            <div>
                <%- note %>
            </div>
            <div>标签</div>
            <div class="tn-tags">
                    <% for(var i=0; i < tags.length; i++) { %>
                        <div class="tn-tag"><%- tags[i] %></div>
                    <% } %>
            </div>
            <div class="tn-places">
            <span class="icon icon-place"></span>
            <% for(var i=0; i < place.length; i++) { %>
                <div class="tn-place"><%- place[i] %></div>
            <% } %>
            </div>
        </div>
        <div class="panel-footer">
            <button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#del-modal-<%- noteid %>">
              删除
            </button>
        </div>
    </div>
</script>
<script type="text/template" id="note-del-template">
<div class="modal fade" id="del-modal-<%- noteid %>" tabindex="-1" role="dialog" aria-labelledby="del-label-<%- noteid %>">
    <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="del-label-<%- noteid %>">Modal title</h4>
      </div>
      <div class="modal-body">
        确定删除？<span class="text-danger">不能恢复</span>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary del-note" data-noteid="<%- noteid %>">确定</button>
      </div>
    </div>
  </div>
</div>
</script>
</body>
</html>
